<%- include('header')%>
    <div class="container mt-100 mb-50">
        <div class="row">
            <div class="col-md-4">
                <%- include('components/user-info', {user: authUser})%>
            </div>

            <div class="col-md-8">
                <form class="form-horizontal" enctype="multipart/form-data" method="post">
                    <div class="form-group">
                        <label>标题</label>
                        <input type="text" class="form-control" name="title" value="<%= post.title %>">
                    </div>
                    <div class="form-group">
                        <label for="">配图</label>
                        <div class="upload">
                            <img src="<%= post.img || '/img/upload.png' %>" accept="image/*" class="upload__img" alt="">
                            <input type="file" class="upload__input" name="img">
                        </div>
                    </div>
                    <div class="form-group">
                        <label>内容</label>
                        <textarea name="content" class="form-control" rows="15" value=""><%= post.content %></textarea>
                    </div>
                    <div class="form-group text-align-center mt-50">
                        <input type="submit" class="btn btn-primary
                    btn-lg
                    br-30
                    pt-6
                    pb-6
                    w-120
                    bg-color-primary
                    bd-color-primary
                    outline-none
                    color-white" value="发 布 ">
                    </div>
                </form>
            </div>
        </div>
    </div>
    <%- include('footer')%>